package com.zhuss.job.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.job.job.DetailJobTopicVo;
import com.zhuss.job.db.dao.gen.JobTopicMapper;
import com.zhuss.job.db.entity.JobTopic;

@Mapper
public interface JobTopicDao extends JobTopicMapper {
	
	void create(JobTopic record);
	
	int delete(JobTopic record);
	
	int deleteByParent(JobTopic record);
	
	void deleteBatch(@Param("jobTopicIdList") List<Long> jobTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	void deleteByParentBatch(@Param("jobTopicIdList") List<Long> jobTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	List<JobTopic> listAll(@Param("area") Integer area, @Param("jobId") Long jobId);
	
	DetailJobTopicVo detail(@Param("jobTopicId") Long jobTopicId);
	
	List<Long> listSon(@Param("jobTopicIdList") List<Long> jobTopicIdList);

	List<DetailJobTopicVo> listTopic(@Param("jobId") Long jobId, @Param("parent") Long parent);
    
}